using UnityEngine;

public class OneClick : MonoBehaviour
{
	private BoxCollider _collider;

	private BoxCollider collider
	{
		get
		{
			if (_collider == null)
			{
				_collider = GetComponent<BoxCollider>();
			}
			return _collider;
		}
	}

	private void OnEnable()
	{
		collider.enabled = true;
	}

	private void OnClick()
	{
		collider.enabled = false;
	}
}
